



<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>update</title>
</head>
<body>

<center>
    <form enctype="multipart/form-data"  action='${pageContext.request.contextPath}/changePerson' method="post">
        <table>
            <tr>
                <td>头像：</td>
                <td><img style="width: 10%" src="${pageContext.request.contextPath}/upload_repository/${Persons.face}"></td>
                <input type="hidden" name="rawFace" value="${Persons.face}"/>
            </tr>
            <tr><td>修改头像：</td><td><input type="file" name="face"></td></tr>
            <tr>
                <td>id：</td>
                <td><input type = "text" value = "${Persons.id}" name = "personId" readonly="readonly"/></td>
            </tr>
            <tr>
                <td>姓名：</td>
                <td><input type = "text" name = "personName" value = "${Persons.name}"/></td>
            </tr>

            <tr>
                <td>生日：</td>
                <td><input type = "date" name = "birthday" value = "${Persons.birthday}"/></td>
            </tr>

            <tr>
                <td>性别：</td>
                <td><input type = "text" name = "sex" value = "${Persons.sex}" maxlength="1"/></td>
            </tr>


            <tr>
                <td>联系方式：</td>
                <td><input type = "text" name = "mobile" value = "${Persons.mobile}"/></td>
            </tr>

            <tr>
                <td>住址：</td>
                <td><input type = "text" name = "address" value = "${Persons.address}"/></td>
            </tr>

            <tr>
                <td colspan="2"><input type = "submit" value="修改"/></td>
            </tr>
        </table>
    </form>
11111111111111
</center>
</body>
</html>
